import 'package:freezed_annotation/freezed_annotation.dart';

part 'get_catgory_request.g.dart';
part 'get_catgory_request.freezed.dart';

@freezed
class GetCatgoryRequest with _$GetCatgoryRequest {
  const factory GetCatgoryRequest({
    /// 默认0为推荐
    @Default('0') String cateId,
    required String page,
    required String pageSize,

    /// 可以为空
    String? county,
  }) = _GetCatgoryRequest;

  factory GetCatgoryRequest.fromJson(Map<String, dynamic> json) =>
      _$GetCatgoryRequestFromJson(json);
}
